
import 'package:ysy_flutter_mvvm_yuanxuan/bean/base/BaseBean.dart';

class LoginBean extends BaseJsonBean{
  String? token;
  String? tokenHead;
  String? memberId;
  String? nickname;
  String? icon;

  LoginBean({this.token, this.tokenHead, this.memberId, this.nickname, this.icon});

  LoginBean.fromJson(Map<String, dynamic> json)  {
    token = json['token'];
    tokenHead = json['tokenHead'];
    memberId = json['memberId'];
    nickname = json['nickname'];
    icon = json['icon'];
  }

  @override
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['token'] = this.token;
    data['tokenHead'] = this.tokenHead;
    data['memberId'] = this.memberId;
    data['nickname'] = this.nickname;
    data['icon'] = this.icon;
    return data;
  }

  @override
  String toString() {
    return 'DataBean{token: $token, tokenHead: $tokenHead, memberId: $memberId, nickname: $nickname, icon: $icon}';
  }
}